/**
 * @(#)AgPlatform1.java		
 * 
 * History:
 * 1.0	2 May 2012
 * 		Created
 * 2.0	21 May 2012
 * 		Applied single Watcher per team. Watcher creation is moved to Registration Desk.
 */
package upm.pb4agent.team1;

import jade.wrapper.StaleProxyException;
import upm.pb4agent.team1.platform.Referee;
import upm.pb4agent.team1.platform.RegistrationDesk;
import es.decoroso.communicationAgent.CommunicationAgent;

/**
 * This class is responsible for creating the common agents: Registration Desk,
 * Referee.
 * 
 * @version 2.0
 * @author Bob Nicolaus
 * 
 */
public class AgPlatform1 extends AgBase1 {

	private static final long serialVersionUID = -8856072996546509966L;

	@Override
	protected void setup() {

		try {
			createNewAgent("CommunicationAgent",
					CommunicationAgent.class.getCanonicalName(), null);

			createNewAgent("Referee", Referee.class.getCanonicalName(), null);

			createNewAgent("RegistrationDesk",
					RegistrationDesk.class.getCanonicalName(), null);

		} catch (StaleProxyException e) {
			e.printStackTrace();
		}
	}
}
